# 时间格式转换
from datetime import datetime, timedelta

start = datetime(2004,5, 6,7,8,32)

print(start)
print(type(start))
print('-'*30)

s = start.strftime('%Y-%m-%d %H:%M:%S')
print(s)
print(type(s))

print('-'*30)

birthday = datetime.strptime('2004/12/25','%Y/%m/%d')
print(birthday)
print(type(birthday))
